import Vue from "vue";
import { NavBar, Tabbar, TabbarItem, Swipe, SwipeItem, Grid, GridItem } from "vant";
import { Card } from "vant";
import { Panel } from "vant";
import { Field } from "vant";
import { Button, Icon, Rate } from "vant";
import { Loading } from "vant";
import { Tab, Tabs } from "vant";
import { Lazyload } from "vant";
import { ImagePreview } from "vant";
import { List } from "vant";
import { Stepper } from "vant";
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from "vant";

Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);

Vue.use(Stepper);
Vue.use(List);
// 全局注册
Vue.use(ImagePreview);
// import gif from "@/assets/images/001.gif";
Vue.use(Lazyload, {
  lazyComponent: true,
  // loading: "@/assets/loading.gif",
  // loading: gif,

  loading:
    "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F201911%2F27%2F20191127080735_hcyrt.thumb.400_0.gif&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1666399720&t=7af28513393ede633d84606500e587fb",
});

Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Loading);
Vue.use(Rate);
Vue.use(Icon);
Vue.use(Button);
Vue.use(Field);
Vue.use(Panel);
Vue.use(NavBar);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Card);
